<% provide(:title, "Log in") %>
<h4>登录</h4>

<div class="row">
  <div class="col-md-6 col-md-offset-3">
    <%= form_for(:session, url: login_path) do |f| %>

        <%= f.label :邮箱 %>
        <%= f.email_field :email %>

        <%= f.label :密码 %>
        <%= f.password_field :password %>

        <%= f.submit "登 录", class: "btn btn-primary" %>
    <% end %>

    <p>新用户? <%= link_to "立即注册!", signup_path %></p>
    <!--test-->
    <%= params[:session] %>
  </div>
</div>